package zunyi03;

/**
 *手机类
 */
public class Phone {
    private String brand;
    private int price;

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPprice(int pprice) {
        this.price = pprice;
    }

    //打电话
    public void call(Phone phone){
        System.out.println("正在使用价格为"+phone.getPrice()+"元的"+phone.getBrand()+"品牌的手机打电话....");
    }

    //发短信
    public void sendMessage(Phone phone){
        System.out.println("正在使用价格为"+phone.getPrice()+"元的"+phone.getBrand()+"品牌的手机发短信....");
    }

    //玩游戏
    public void playGame(Phone phone){
        System.out.println("正在使用价格为"+phone.getPrice()+"元的"+phone.getBrand()+"品牌的手机玩游戏....");
    }
}
